package com.stu.exercise.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.stu.exercise.entity.Orders;
import com.stu.exercise.entity.R;
import com.stu.exercise.mapper.OrdersMapper;
import com.stu.exercise.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, Orders> implements OrdersService {

    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public R getOrders(Map<String, Object> map) {
        List<Orders> list = ordersMapper.selectOrders(map);
        return R.success(list);
    }
}
